package com.example.ccj.b.c.recycler;

/**
 * 侧滑功能bean定义
 * @param <T>
 */
public class FunctionModel<T> {
    public String name;//名称
    public int color;//颜色
    public int layout;//布局
    public DefaultAdapterFunction<T> function;//点击事件

    public FunctionModel(){}
    public FunctionModel(String name){
        this.name = name;
    }
    public FunctionModel(String name, int color){
        this.name = name;
        this.color = color;
    }
    public FunctionModel(String name, DefaultAdapterFunction<T> function){
        this.name = name;
        this.function = function;
    }
    public FunctionModel(String name, int layout, DefaultAdapterFunction<T> function){
        this.name = name;
        this.layout = layout;
        this.function = function;
    }
    public FunctionModel(String name, int color, int layout, DefaultAdapterFunction<T> function){
        this.name = name;
        this.color = color;
        this.layout = layout;
        this.function = function;
    }
}
